package com.company.management.mapper.reward;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.management.domain.reward.Punishments;
import com.company.management.domain.reward.bo.PunishmentsBO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


public interface PunishmentsMapper extends BaseMapper<Punishments> {
    Punishments findByPunishmentId(Integer punishmentId);


    List<PunishmentsBO> findByUserId(@Param("startTime") Date startTime,
                                     @Param("endTime") Date endTime,
                                     @Param("userIds") List<Integer> userIds);
    byte[] findByNote(Integer punishmentId);
}